if (scanf(“%d”, n) != 1) {
return 1;
Объяснить подробно